package net.huashitong.scheduling.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.scheduling.dao.ProjectReserveDao;
import net.huashitong.scheduling.entity.ProjectReserve;
import net.huashitong.scheduling.entity.ProjectSecondRecom;
import net.huashitong.scheduling.filter.ProjectReserveFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectReserveService  extends StringPKService<ProjectReserve> {

    @Autowired
    private ProjectReserveDao dao;
    @Override
    protected BaseDao<ProjectReserve, String> getDao(){
        // TODO Auto-generated method stub;
        return dao;
    }


    public List<ProjectReserve> queryByMonthAndYearAndCategoryDetail(ProjectReserveFilter filter){
        return dao.queryByMonthAndYearAndCategoryDetail(filter);
    }

    public List<ProjectReserve> queryByMonthAndYear(String month,String year){
        return dao.queryByMonthAndYear(month,year);
    }

}
